package com.rizzo.analytics.services.web.controller;

/**
 * Simple catchall Controller to throw decent 404 RestErrors.
 */
//@Controller
//@Api(value="", description="Operations about defaults")
public class DefaultController {

//    @RequestMapping("/**")
//    @PreAuthorize("hasRole('ROLE_USER')")
//    public void unmappedRequest(HttpServletRequest request) {
//        String uri = request.getRequestURI();
//        throw new UnknownResourceException(40400, "There is no resource for path " + uri);
//    }

//    @RequestMapping("/403")
//    @ApiOperation(value = "Error", notes = "Some notes about error here")
//    public void accessDenied(HttpServletRequest request) {
//        throw new InsufficientCredentialsException(40300, "Access is denied");
//    }
}